package com.java.polymorphism.use;

public class Context {
    private Teacher teacher;

    public Context(Teacher teacher) {
        this.teacher = teacher;
    }

    public void execute() {
        teacher.type();
    }
}
